<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$smarty.const.Site_Name}</title>
<link href="css/public.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="Js/menu.js"></script>
<script type="text/javascript" src="Js/exec.js"></script>
</head>

<body>
{include file="header.html"}
<div class="center">
	<div class="left">{include file="menu.html"}</div>
	<div class="right">
		<div class="Nav">
			<ul>
				{if $BTP[$get.open].add}<li><a href="{write_url url=$thisurl action='add' DEL='ALL'}" {CLASS_COLOR add=$get.action CLASS='this'}>添加角色</a></li>{/if}
				{if $BTP[$get.open].show}<li><a href="{write_url url=$thisurl action='show' DEL='ALL'}" {CLASS_COLOR show=$get.action CLASS='this'}>角色管理</a></li>{/if}
			</ul>
			<span class="clear"></span>
		</div>
		<div class="append">
			<form action="{write_url url=$thisurl go='append'}" method="post">
				<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show">
					<tr><th colspan="2">设定角色权限</th></tr>
					<tr>
						<td align="right" width="20%">角色名</td>
						<td>{$edit.name}</td>
					</tr>
					<tr class='NO_TAB_SHOW'>
						<td align="right" class="Need">代理权限</td>
						<td>
							<div class="select">
								注：在存在[显示]标签的行中,选择其他任何标签,都将选中[显示].
							</div>
							<ul class="purview">
								{foreach item=pws from=$purview.proxy}
								<li>
									<b>{$pws.open_show}</b>
									<input value="选择" type="button" class="set" onclick="select_zfs(this);" />
									{foreach item=aon from=$pws.action}
									<label for="{$aon.id}"><input name="purview[]" type="checkbox" value="{$aon.id}" id="{$aon.id}" title="{$aon.action}" onclick="select_ck(this)" {checked val=$aon.id str=$edit.purview} /> {$aon.action_show}</label>
									{/foreach}
								</li>
								{/foreach}
							</ul>
						</td>
					</tr>
					<tr class='NO_TAB_SHOW'>
						<td align="right" class="Need">客服权限</td>
						<td>
							<div class="select">
								注：在存在[显示]标签的行中,选择其他任何标签,都将选中[显示].
							</div>
							<ul class="purview">
								{foreach item=pws from=$purview.service}
								<li>
									<b>{$pws.open_show}</b>
									<input value="选择" type="button" class="set" onclick="select_zfs(this);" />
									{foreach item=aon from=$pws.action}
									<label for="{$aon.id}"><input name="purview[]" type="checkbox" value="{$aon.id}" id="{$aon.id}" title="{$aon.action}" onclick="select_ck(this)" {checked val=$aon.id str=$edit.purview} /> {$aon.action_show}</label>
									{/foreach}
								</li>
								{/foreach}
							</ul>
						</td>
					</tr>
					<tr class='NO_TAB_SHOW'>
						<td align="right" class="Need">后台权限</td>
						<td>
							<div class="select">
								注：在存在[显示]标签的行中,选择其他任何标签,都将选中[显示].
							</div>
							<ul class="purview">
								{foreach item=pws from=$purview.back}
								<li>
									<b>{$pws.open_show}</b>
									<input value="选择" type="button" class="set" onclick="select_zfs(this);" />
									{foreach item=aon from=$pws.action}
									<label for="{$aon.id}"><input name="purview[]" type="checkbox" value="{$aon.id}" id="{$aon.id}" title="{$aon.action}" onclick="select_ck(this)" {checked val=$aon.id str=$edit.purview} /> {$aon.action_show}</label>
									{/foreach}
								</li>
								{/foreach}
							</ul>
						</td>
					</tr>
					<tr><th colspan="2" align="center"><input type="submit" value=" 提 交 " /> <input type="reset" value=" 重 填 " /></th></tr>
				</table>
			</form>
		</div>	
	</div>
	<b class="clear"></b>
</div>
</body>
</html>